#include <stdio.h>

namespace sg
{
	class Calculator
	{
		public :
			Calculator(int v){value=v;}
			int GetValue(){return this->value;}

			void operator+(const int v)
			{
				this->value += v;
			}

			bool operator==(const int v) const
			{
				return (v==this->value);
			}
	
		private :
			int value;
	};
}

int main()
{
	sg::Calculator c(100);
	printf("%d\n",c.GetValue());
	c+1;
	printf("%d\n",c.GetValue());
	
	//if (101==c)
	if (c==101)
		printf("Allright\n");
	else
		printf("Error\n");

	return 0;
}

